package StringHomeWork;
//判断当前字符串是否以给定的字符开始/结束
import java.lang.ref.PhantomReference;

public class EndsWithDemo {
    public static void main(String[] args) {
        String str="Rondom .index phink";
        boolean starts=str.startsWith("Rondom");
        System.out.println(starts);
        boolean ends=str.endsWith("Phink");
        System.out.println(ends);
    }
}
